﻿using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Npgsql;


public class ApplicationDbContext : DbContext
{
    public  IConfiguration Configuration;

    public ApplicationDbContext(IConfiguration configuration) {
        Configuration = configuration;
    }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
        optionsBuilder.UseNpgsql(Configuration.GetConnectionString("SKApiDatabase"));
    }

    public DbSet<Student> Students { get; set; }



}